//
//  ZTVideoPlayer.m
//  BuDeJie15
//
//  Created by zzt on 16/11/3.
//  Copyright © 2016年 seemygo. All rights reserved.
//

#import "ZTVideoPlayer.h"
#import <AVFoundation/AVFoundation.h>

@interface ZTVideoPlayer ()<UIWebViewDelegate>
@property (nonatomic, strong)UIWebView *myWeb;
@end

@implementation ZTVideoPlayer
- (void)videoWithString:(NSString *)nameString {
    //UIWebView 加在网络视频 在线播放  有声音
    
    UIWebView *myWeb = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    NSURL *url = [NSURL URLWithString:nameString];
                  
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
                  
    [myWeb setDelegate:self];
                  
    [myWeb loadRequest:request];
    
    _myWeb = myWeb;
    
    [self addSubview:_myWeb];

}
@end
